home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1625 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.7 KB

  1. Path: news.infi.net!usenet
  2. From: nngis@norfolk.infi.net (Greg DiGiorgio)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: getting started on multitasking...
  5. Date: 15 Jan 1996 00:14:18 GMT
  6. Organization: Customer of InfiNet
  7. Message-ID: <4dc68q$13m@news.infi.net>
  8. References: <4d93fb$hej@srvr1.engin.umich.edu>
  9. NNTP-Posting-Host: h-langoliers.norfolk.infi.net
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.3
  12.  
  13. In article <4d93fb$hej@srvr1.engin.umich.edu>, 
  14. hasdi@news-server.engin.umich.edu says...
  15. >
  16. >Hello, I'm student interested in learning about multitasking 
  17. >programming.
  18. >
  19. >Can somebody point me to some good URLs out there? Maybe some books?
  20. >What is the best enviroment to do it? I have a few at my disposal: 
  21. >Windows 3.1, Windows NT, Unix and Linux (sorry, no OS/2). While you
  22. >are at it, I have a few questions....
  23. >
  24. >o       is there any difference in threads, processes and forks?
  25. *** A process is an instance of a running program. If the OS supports
  26. *** it (OS/2 & UNIX), that process can kick off child tasks (threads).
  27. *** Kill the parent task, and you kill its child. Kill the child and
  28. *** the parent remains active. Boy, oh boy, are we not a violent bunch.
  29. *** Certanily we could have come up with better terms... I have heard
  30. *** of the term "forks" but am not knowledgeable enough to respond.
  31.  
  32. >o       What does it mean to be pre-emptive? 
  33. *** If an OS is pre-emptive, then the OS controls how long a task can
  34. *** hog the CPU. The opposite to "pre-emptive" is "cooperative 
  35. *** processing" wherein the task (running application) controls the 
  36. *** use of the CPU. All other programs running depend on that task to
  37. *** relinquish the CPU.
  38. >o       How does programs like webbrowsers, word processors, 
  39. >        spreadsheets benefit from multitasking? 
  40. (and maybe multi-threading?)
  41. *** Web Browsers have the ability to download GIFs while keeping their
  42. *** hypertext active and ready. Conceivabluy, Web browsers could allow
  43. *** you to download files while viewing other info.
  44. *** Word processors can immediately benefit by internally repaginating
  45. *** your doc as you type in your text or with newer software, checking
  46. *** your spelling as you type in a word - instead of running spell check 
  47. *** later.
  48. *** With spreadsheets, you can continue to type in data while the SS
  49. *** re-calcs dependent formulas. Better yet, would be to have the SS
  50. *** auto-update any linked SS cells as you continue to work.
  51.  
  52. >Thanks.
  53. >
  54. >Hasdi
  55.  
  56. Hasdi,
  57. I know some more knowledgable folks will reply and point you in the right 
  58. direction. Multi-tasking is a big subject with newer subtopics including 
  59. parallel processing, pipelining, etc. Good luck in this area. You 
  60. probably could specialize in multi-processing and operating systems for a 
  61. lifetime, but you better think about continuing your education.
  62.  
  63. Greg DiGiorgio
  64.  
  65.